<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [data-name] {
            color: red;
        }
        
        [data-name="hh"] {
            color: pink;
        }
        
        [data-name^="c"] {
            color: blue;
        }
        
        [data-name$="h"] {
            color: cadetblue;
        }
        
        [data-name*="cb"] {
            color: chartreuse;
        }
        
        .box {
            color: purple;
        }
        
        input[type="text"] {
            border: 1px solid red;
        }
        
        input[type="submit"] {
            border: 1px solid blue;
        }
    </style>
</head>

<body>
    <div data-name="hh">哈哈哈哈哈</div>
    <div data-name="cbc">嘿嘿嘿</div>
    <div data-name="cb">啦啦啦啦</div>
    <div data-name="cdadhh" class="box">嘻嘻嘻</div>
    <input type="text">
    <input type="submit" name="" id="">
</body>

</html>